// packageA/mycomponent/goodsComponent/plugin/shopListShow/shopListShow.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    supplier: {
      type: null
    },
    showList: {
      type: null
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    logo: '',
  },
  lifetimes: {
    attached() {
      this.setData({
        logo: wx.getStorageSync('yz_basic_info')?.home?.mailInfo?.logo_url
      })
    }
  },
  /**
   * 组件的方法列表
   */
  methods: {
    closeTap() {
      this.triggerEvent('close')
    },
    goUrl(e) {
      let key = e.currentTarget.dataset.key;
      if (key == "supplier") {
        let Url = '/packageA/member/supplier/SupplierShop/SupplierShop'
        if (this.data.supplier.aggregate == 3) {
          Url = '/packageA/member/supplier/SupplierShop3/index'
        }
        wx.navigateTo({
          url: Url + "?id=" + this.data.supplier.id,
        });
      } else {
        wx.navigateTo({
          url: '/packageG/index/index',
        })
      }
    }
  }
})